Telegram Group & Telegram Channel
This media is not supported in your browser
VIEW IN TELEGRAM
Совет по CSS! 🤙

Вы можете создать этот магнитный эффект :hover с помощью позиционирования анкоров CSS, :has и без JS 🔥.

article { anchor-name: --develop; }
ul:has(li:hover) { --anchor: --develop; }
ul::after {
inset:
anchor(var(--anchor) top)
anchor(var(--anchor) right)
... ;
}

Как сохранить чистоту при входе/выходе из списка? Используйте transition-delay

ul:has(li:hover) { --active: 1; }
ul::after {
opacity: var(--active, 0);
transition: opacity 0.2s, inset 0.2s 0.2s;
}
ul:hover::after {
transition: opacity 0.2s 0.2s, inset 0.2s;
}



tg-me.com/htmlcssjavas/943
Create:
Last Update:

Совет по CSS! 🤙

Вы можете создать этот магнитный эффект :hover с помощью позиционирования анкоров CSS, :has и без JS 🔥.

article { anchor-name: --develop; }
ul:has(li:hover) { --anchor: --develop; }
ul::after {
inset:
anchor(var(--anchor) top)
anchor(var(--anchor) right)
... ;
}

Как сохранить чистоту при входе/выходе из списка? Используйте transition-delay

ul:has(li:hover) { --active: 1; }
ul::after {
opacity: var(--active, 0);
transition: opacity 0.2s, inset 0.2s 0.2s;
}
ul:hover::after {
transition: opacity 0.2s 0.2s, inset 0.2s;
}

BY Web разработка


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/htmlcssjavas/943

View MORE
Open in Telegram


Web разработка Telegram | DID YOU KNOW?

Date: |

The S&P 500 slumped 1.8% on Monday and Tuesday, thanks to China Evergrande, the Chinese property company that looks like it is ready to default on its more-than $300 billion in debt. Cries of the next Lehman Brothers—or maybe the next Silverado?—echoed through the canyons of Wall Street as investors prepared for the worst.

Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.

Web разработка from hk


Telegram Web разработка
FROM USA